﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="TimersAdd.aspx.cs" Inherits="WebMMS.Base.TimersAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="../script/jquery.js"></script>
    <script type="text/javascript" src="../script/jquery.setBrowserClass.js"></script>
    <script type="text/javascript" src="../script/jquery.marquee.js"></script>
    <script type="text/javascript" src="../script/main.js"></script>
    <script type="text/javascript" src="../script/Common.js"></script>
    <script language="javascript" type="text/javascript" src="../script/UCcalendar/WdatePicker.js"></script>
    <script type="text/javascript">
        function CheckInt(objT) {
            var strValue = objT.value.Trim();
            if (strValue != "") {
                if (isNaN(strValue)) {
                    alert("请输入正整数！");
                    objT.focus();
                }
                else {
                    if (strValue.indexOf(".") > -1 || strValue.indexOf("-") > -1) {
                        alert("请输入正整数！");
                        objT.focus();
                    }
                }
            }
        }
        function CheckADD() {
            var strTimeInterval = document.getElementById('<%=txtTimer.ClientID%>').value.Trim();
            if (strTimeInterval == "") {
                alert("联网时间间隔不能为空！");
                return false;
            }
            return true;
        }
        function CancelFun() {
            window.location.href = "Timers.aspx";
            return false;
        }
    </script>
    <style type="text/css">
        .tdInfo
        {
            text-align: left;
            height: 40px;
            font-size: 12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="Form1" runat="server">
    <div align="center">
        <table style="width: 70%;" border="1">
            <tr>
                <td style="text-align: left;">
                    PID：
                </td>
                <td class="tdInfo">
                    <div style="overflow-y: scroll; width: 100%; height: 200px">
                        <asp:CheckBoxList ID="cblPID" runat="server">
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="text-align: left;">
                    APPID：
                </td>
                <td class="tdInfo">
                    <div style="overflow-y: scroll; width: 100%; height: 200px">
                        <asp:CheckBoxList ID="cblAPPID" runat="server">
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="text-align: left;">
                    联网时间间隔（分钟）：
                </td>
                <td class="tdInfo">
                    <asp:TextBox ID="txtTimer" runat="server" CssClass="txtBoxNormal" onblur="CheckInt(this)"
                        MaxLength="5"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td style="text-align: left;">
                    <asp:Button ID="btnSave" runat="server" Text="保 存" CssClass="button_blue" Width="80px"
                        OnClick="btnSave_Click" OnClientClick="return CheckADD();" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="取 消" CssClass="button_blue" Width="80px"
                        OnClientClick="return CancelFun();" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</asp:Content>
